﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SearchOperations
{
    public class Route
    {
        public List<SegmentInfo> DisplayInfo
        {
            get;
            set;
        }

        public Route()
        {
            DisplayInfo = new List<SegmentInfo>();
        }

        public decimal Price
        {
            get;
            set;
        }

        public string TotalTime
        {
            get;
            set;
        }

        public string WayStationInfo
        {
            get;
            set;
        }

        public int CompareTo(Route other)
        {
            return this.Price.CompareTo(other.Price);
        }
    }
}
